package www.lagou.app;

import org.junit.Test;
import www.lagou.dao.PhoneDao;
import www.lagou.entity.Phone;

import java.sql.SQLException;
import java.util.List;

public class testPhoneDao {
    PhoneDao phoneDao =new PhoneDao();
    @Test
    public void testQuery1() throws SQLException {
        List<Phone> phones = phoneDao.queryPhone1(2000.00,"2019-01-01");
        for(Phone p:phones){
            System.out.println(p);
        }
    }
    @Test
    public void testQuery2() throws SQLException {
        List<Phone> phones=phoneDao.queryPhone2("白色");
        for(Phone p:phones){
            System.out.println(p);
        }
    }
}
